﻿#pragma strict

var dkOngNuoc : GameObject;

function Start () {
	var positionX : float = gameObject.transform.position.x;
	var randomScale : int = RandomScale();
	var position : Vector2 = Vector2(positionX + 5, (randomScale/2) + 0.5);
	var dkOngNuocDuoi : GameObject = Instantiate(dkOngNuoc, position, transform.rotation);
	
	var positionYDkOngTren :  float = 10 - randomScale + 0.5 + 2;
	var positionOngTren : Vector2 = Vector2(positionX + 5);
	Instantiate(dkOngNuoc,);
}

function RandomScale() : int{
	return Random.Range(3,5);
}